package com.smedi.ismedi.inmail.core.port.adapter.persistence.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.smedi.ismedi.database.starter.model.BasicFieldEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author u
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "iml_message_record")
public class MessageRecordEntity extends BasicFieldEntity implements Serializable {
    private Long userId;

    private String projectId;

    private String projectName;

    private Long messageId;

    private String messageType;

    private String sourceFrom;

    private Long sourceFromId;

    private String messageTitle;

    private String messageContent;

    private Boolean messageRead;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
    private LocalDateTime pushTime;
}